<template>
  <div id="app">
    <headers id="headers" :title="title"></headers>
    <router-view id="body"></router-view>
    <tabBar id="tabs"></tabBar>
  </div>
</template>

<script>
import tabBar from '@/components/tabBar/tabBar';
import headers from '@/components/header/header';
export default {
  name: 'App',
  props:{
    title:{
      type:String,
      default:'首页'
    }
  },
  data() {
    return {
      //title:this.$route.path,
    };
  },
  components:{
    tabBar,
    headers
  },

}
</script>

<style>
  @import 'common/css/common.less';
  @import 'assets/icon_font/iconfont.css';
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    width: 100vw;
    height: 100vh;
  }
  #tabs{
    position: absolute;
    bottom: 0px;
    width: 100vw;
    height: 50px;
  }
  #headers{
    width: 100vw;
    height: 50px;
    position: absolute;
    top: 0px;
  }
  #body{
    width: 100vw;
    height: calc(100vh - 100px);
    position: absolute;
    top: 50px;
    overflow-y: scroll;
  }
</style>
